export function typeIt(data, type) {
  return Object.prototype.toString.call(data) === `[object ${type}]`;
}

/*export function isEmptyArray(data) {
  if (typeIt(data, 'Array') && data.length) {
    return true;
  }
  return false;
}*/

export function isNotEmptyArray(data) {
  if (typeIt(data, 'Array') && data.length) {
    return true;
  }
  return false;
}

export function isNotEmptyObject(data) {
  if (typeIt(data, 'Object') && JSON.stringify(data) !== '{}') {
    return true;
  }
  return false;
}
